package com.wedistudio.slidesprovider;

import com.wedistudio.android.framework.json.JSonObject;
import com.wedistudio.android.framework.service.ServiceRequest;

public class SearchCriteria extends JSonObject<SearchCriteria> implements
		ServiceRequest {

	private String keyword;
	private SortBy sort;
	private Language language;
	private Integer offset;
	private Integer limit;

	public static SearchCriteria create(String keyword, SortBy sort,
			Language language, Integer offset, Integer limit) {

		return new SearchCriteria(keyword, sort, language, offset, limit);
	}

	public String getKeyword() {
		return keyword;
	}

	public SortBy getSort() {
		return sort;
	}

	public Language getLanguage() {
		return language;
	}

	public Integer getOffset() {
		return offset;
	}

	public Integer getLimit() {
		return limit;
	}

	public SearchCriteria(String keyword, SortBy sort, Language language,
			Integer offset, Integer limit) {
		super();
		this.keyword = keyword;
		this.sort = sort;
		this.language = language;
		this.offset = offset;
		this.limit = limit;
	}

}
